package com.qianfeng.model;


import javax.persistence.Id;
import javax.persistence.Table;

//如果表的名称与实体类的名称之间，符合驼峰命名法
@Table
public class Emp {
    @Id//指定当前实体类的哪一个属性与对应的表的主键相连
    private Long id;
    private String ename;
    private Long jobId;//---转换时，就会转换的字段名：job_id
    private Long mgr;
    private java.util.Date joindate;
    private Double salary;
    private Double bonus;
    private Long deptId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }


    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }


    public Long getMgr() {
        return mgr;
    }

    public void setMgr(Long mgr) {
        this.mgr = mgr;
    }


    public java.util.Date getJoindate() {
        return joindate;
    }

    public void setJoindate(java.util.Date joindate) {
        this.joindate = joindate;
    }


    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }


    public Double getBonus() {
        return bonus;
    }

    public void setBonus(Double bonus) {
        this.bonus = bonus;
    }


    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", ename='" + ename + '\'' +
                ", jobId=" + jobId +
                ", mgr=" + mgr +
                ", joindate=" + joindate +
                ", salary=" + salary +
                ", bonus=" + bonus +
                ", deptId=" + deptId +
                '}';
    }
}
